package com.weixin.webCoding;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @ClassName IntelnetTest
 * @Description :
 * 1.DNS 域名解析服务器   域名  ->  ip  (电脑本机的host文件)
 * 2.
 * @date 2022/2/17 16:26
 * @author: wx
 * @Version 1.0
 */
public class IntelnetTest {

    public static void main(String[] args) throws UnknownHostException {
        InetAddress byName = InetAddress.getByName("192.168.0.25");
        System.out.println(byName);

        InetAddress byName1 = InetAddress.getByName("www.vip.com");
        System.out.println(byName1);

        InetAddress byName3 = InetAddress.getByName("www.localhost");
        System.out.println(byName3);
    }
}
